package main

import (
	"fmt"
)


type Usb interface{
	Start()
	Stop()
}
type phone struct{
	
}
func ( p phone)Start(){


	
	fmt.Println("phone start working")
}
func (p phone)Stop(){
	fmt.Println("phone stop working")
}

type camera struct{

}

func (c camera)Start(){
	fmt.Println("camera start working")
}

func (c camera)Stop(){
	fmt.Println("camera stop working")
}

type computer struct{

}

func (c computer)Working(usb Usb){

	usb.Start()
	usb.Stop()
}
func main(){

	//interface 接口  
	compu:=computer{}
	ph:=phone{}
	cam:=camera{}

	compu.Working(ph)
	compu.Working(cam)


}